define(['jquery', 'bootstrap', 'backend', 'cropper'], function ($, undefined, Backend, Cropper) {

    var Controller = {
        uploadfile: function () {
            $("#image > img").cropper({
                viewMode:3,
                aspectRatio: 9/16,
                checkCrossOrigin:false,
                resizable:false,
                // preview:"#preview",
                crop: function(data) {
                    $("#preview").text(JSON.stringify(data));
                    console.log(data)
                }
            });
        }
    };
    return Controller;
});